package cool.houge.infra.dao;

import cool.houge.infra.TestBase;
import cool.houge.infra.tx.TxOps;
import io.r2dbc.spi.ConnectionFactory;
import org.junit.jupiter.api.BeforeEach;

/**
 * @author KK (kzou227@qq.com)
 */
public abstract class AbstractTestDao extends TestBase {

  /**
   * 事务操作对象.
   */
  protected TxOps txOps;

  @BeforeEach
  void beforeEach() {
    this.txOps = new TxOps(testScope.get(ConnectionFactory.class), true);
  }
}
